package uos.gcds.menu;

import uos.gcds.food.Food;

public class MenuLineItem {

	private int qty;
	private Food food;
	
	public MenuLineItem(Food food, int qty){
		this.setFood(food);
		this.setQty(qty);
	}
	
	public void setQty(int qty){
		this.qty = qty;
	}
	
	public int getQty(){
		return this.qty;
	}
	
	
	
	
	public void setFood(Food food){
		this.food = food;
	}
	
	public Food getFood(){
		return this.food;
	}
	
	public int getSubTotal(){
		return this.getFood().getPrice() * this.getQty();
	}
}
